package com.dpwx.framework.mvc;

import android.view.View;

public abstract class BaseView {
	
	private View mViewObject;
	private int mResId = -1;
	private BaseActivity mActivity;
	public BaseView(BaseActivity activity, int resId) {
		this.mActivity = activity;
		this.mResId = resId;
	}
	
	public BaseView(BaseActivity activity, View view) {
		this.mActivity = activity;
		this.mViewObject = view;
	}
	
	public View getViewObject() {
		return mViewObject;
	}
	
	public int getResId() {
		return mResId;
	}
	
	public void show() {
		mActivity.getUiEventDispatcher().showView(this);
	}

}
